
#ifndef HELLOWORLDDAO_MOCK_H
#define HELLOWORLDDAO_MOCK_H

#include <stdint.h>
#include <string>
#include "app_platform/cntl_info.h"

#include "erp/helloworld/ddo/helloworldddo_helloworld.h"	
#include "erp/helloworld/ddo/helloworldfilterddo_helloworld.h"	
#include <set>	
#include <map>	
#include "intf_helloworlddao.h"


namespace erp
{
namespace helloworld
{
namespace dao
{

	class CHelloWorldDaoMock : public IHelloWorldDao{
	public:
	    virtual uint32_t AddHelloWorld(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const erp::helloworld::ddo::CHelloWorldDdo& helloWorld,
				const std::string& inReserve,
				std::string& errmsg,
				erp::helloworld::ddo::CHelloWorldDdo& helloWorldBack,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			helloWorldBack = m_helloWorldBack;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetHelloWorldById(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const erp::helloworld::ddo::CHelloWorldFilterDdo& helloWorldFilter,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint32_t,erp::helloworld::ddo::CHelloWorldDdo >& helloWorlds,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			helloWorlds = m_helloWorlds;
			outReserve = m_outReserve;
			return 0;
	    }		
	
   public:
			std::string m_errmsg;
			erp::helloworld::ddo::HelloWorldDdo m_helloWorldBack;
			std::string m_outReserve;
			std::map<uint32_t,erp::helloworld::ddo::HelloWorldDdo > m_helloWorlds;
	};
	
}
}
}

#endif /* HELLOWORLDDAO_MOCK_H */

